local extension = Package:new("poker-deck", Package.CardPack)
extension.extensionName = "poker-games"
extension:loadSkillSkelsByPath("./packages/poker-games/pkg/deck/skills")

Fk:loadTranslationTable{
  ["poker-deck"] = "一副扑克",
}

for suitEnum, suit in ipairs {"spade", "club", "heart", "diamond" } do
  for i = 1, 13 do
    local name = ("%s%d__poker"):format(suit, i)
    Fk:loadTranslationTable { [name] = "扑克", [":" .. name] = "只是一张扑克而已" }
    local poker = fk.CreateCard{
      name = name,
      type = Card.TypeBasic,
      skill = "poker_skill_2",
      is_passive = true,
    }
    extension:loadCardSkels{ poker }
    extension:addCardSpec(name, suitEnum, i)
  end
end

local FTKnames = {
  ["ftk__single"] = "单牌",
  ["ftk__pair"] = "对子",
  ["ftk__triple"] = "三张",
  ["ftk__ftkFancy"] = "五十K",
  ["ftk__ftkPure"] = "正五十K",
  ["ftk__boom"] = "炸弹",
  ["ftk__triwith2"] = "三带二",
  ["ftk__flush"] = "顺子",
  ["ftk__flusPure"] = "同花顺",
  ["ftk__plane"] = "飞机",
  ["ftk__wings"] = "连对",
  ["ftk__superBoom"] = "天炸"
}
for k, v in pairs(FTKnames) do
  local FTK_card = fk.CreateCard{
    name = k,
    type = Card.TypeTrick,
    skill = "ftk_card_skill",
  }
  extension:loadCardSkels{ FTK_card }
  Fk:loadTranslationTable{ [k] = v }
end

return extension
